using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Text;
using System.Xml.Serialization;
namespace 订单管理2
{
    public partial class Form1 : Form
    {
        int op = 10010;

        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {   
            this.Hide();
             Form2 form = new Form2();
            form.FormClosed += new FormClosedEventHandler(form2_FormClosed);
            form.Show();
        }
        void form2_FormClosed(object sender, FormClosedEventArgs e)
        {
            this.Show();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button7_Click(object sender, EventArgs e)
        {
            switch(op)
            {
                case 0:
                    textBox1.Text = "已退出系统！感谢您的使用";
                    break;
                case 1:

                    break;

            }
        }

        private void button6_Click(object sender, EventArgs e)
        {
            op = 0;
            textBox1.Text = "请点击确认退出";
        }
    }


}